<!-- Begin holidays/add.tpl -->
<form method="post" action="?module=holidays&action=add&sub={$sub}&cgid={$cgid}" enctype="multipart/form-data">

{opentable}
{titlebar colspan=3 title=$title}
	<tr class="sectiontableheader" align="center">
		<td width="10%">{$lg->htype}</td>
		<td width="10%">{$lg->hperio}</td>
		<td >{$lg->total}</td>
			
	</tr>
	{foreach from=$t_cgpo key=tabix item=s_cgpo}
	<tr align="center">
		<td width="10%">
			<select name=issueid{$tabix}>
					<option value="" >(Select.)</option >
				{foreach from=$t_ctype item=s_ctype}	
					<option value="{$s_ctype.issueid}" {if $s_ctype.issueid eq $s_cgpo.issueid} selected="selected"{/if} >{$s_ctype.objet}</option >
				{/foreach}
			</select>	
		</td>
		<td width="70%" align="left" valign="middle" >{$lg->from}
			<input  name = "ddate{$tabix}" type="text" id="ddate{$tabix}"  size="12" maxlength="12" value = "{$s_cgpo.ddate}" >
			<input class="button" type="reset" value="?" onclick="return showCalendar('ddate{$tabix}','{$dtfrm}');"> 
			<select name=atime valign="bottom" >
				<option value="0" >{$lg->am}</option >
				<option value="1"  {if $s_cgpo.dtime eq 1} selected="selected"{/if} >{$lg->pm}</option >
			</select>
		  {$lg->to} 
			<input  name = "fdate{$tabix}" type="text" id="fdate{$tabix}"  size="12" maxlength="12" value = "{$s_cgpo.fdate}">
			<input class="button" type="reset" value="?" onclick="return showCalendar('fdate{$tabix}','{$dtfrm}');"> 
			<select name="ftime{$tabix}">
				<option value="1" >{$lg->pm}</option >
				<option value="0"  {if $s_cgpo.ftime eq 0} selected="selected"{/if} >{$lg->am}</option >
			</select>  
		</td>
		<td width="10%">	
			<input name="total{$tabix}" type="text" size="5" value="{$s_cgpo.total}" />
		</td>
	    <td width="20%">&nbsp;</td>	
	</tr>
	{/foreach}
<tr>
	<td colspan="3">
		<input type="submit" class="button" name="add" value={$lg->add} />
		<input type="submit" class="button" name="save" value={$lg->save} />
	</td>
<tr>	
</table>

</form>

<div style="text-align: left; margin: 4px;"><span class="required">*</span> {$lg->required_fields}</div>

</table>

<!-- End holidays/add.tpl -->

